package o;

import com.huawei.appgallery.serverreqkit.api.bean.ResponseBean;
import com.huawei.appgallery.serverreqkit.api.listener.IServerCallBack;
import com.huawei.appmarket.support.audio.AudioBean;
import com.huawei.appmarket.support.audio.AudioPlayListResponse;
import java.util.List;

class epe$a implements IServerCallBack {
    private AudioBean ˏ;

    public epe$a(AudioBean audioBean) {
        this.ˏ = audioBean;
    }

    public void prePostResult(BaseRequest o_cvu, ResponseBean responseBean) {
    }

    public void notifyResult(BaseRequest o_cvu, ResponseBean responseBean) {
        AudioBean ॱ = epe.ˏ().ॱ();
        if (ॱ != null && ॱ.ˏ() != null) {
            String ˏ = ॱ.ˏ();
            int ॱॱ = ॱ.ॱॱ();
            String ˏ2 = this.ˏ.ˏ();
            int ॱॱ2 = this.ˏ.ॱॱ();
            if (!ˏ.equals(ˏ2) || ॱॱ != ॱॱ2 || !(responseBean instanceof AudioPlayListResponse)) {
                return;
            }
            if (responseBean.getRtnCode_() == 0 && responseBean.getResponseCode() == 0) {
                List ˎ = AudioPlayListResponse.ˎ((AudioPlayListResponse) responseBean, ॱ);
                if (!ˎ.contains(ॱ)) {
                    ˎ.add(0, ॱ);
                }
                epe.ˎ(epe.ˏ(), ˎ);
                return;
            }
            Logger.ˋ("AudioPlayerManager", "getPlayList error,rtnCode: " + responseBean.getRtnCode_() + ",responseCode: " + responseBean.getResponseCode());
        }
    }
}
